<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="ch">
<head>
    <meta charset="UTF-8">
    <title>hello</title>
</head>
<body>
<!--<h2>你好, <span th:text="${name}"></span></h2>-->
<h2>你好, [[${name}]]</h2>
<p th:text="${msg}"></p>
<div th:utext="${content}"></div>
<!--满足条件会进行展示-->
<div th:if="${age >= 18}">
    成年人
</div>
<!--th:unless 不满足条件会被展示-->
<div th:unless="${age >= 18}">
    未成年人
</div>
<!--
    th:if 满足的条件展示
    th:unless 不满足条件的展示
-->

<div th:unless="${num}">
    数值类型不为0就是true
</div>

<script th:inline="javascript">
    var name = [[${name}]]
    alert(name)
</script>
<!--

-->
</body>
</html>